var t = require("../../../@babel/runtime/helpers/interopRequireDefault")(require("../../../utils/util.js")), a = getApp();

Page({
    data: {
        tap: 1
    },
    onLoad: function(t) {
        this.setData({
            order_id: t.id
        }), this.getlist();
    },
    onReady: function() {},
    onShow: function() {},
    onHide: function() {},
    onUnload: function() {},
    onPullDownRefresh: function() {},
    onReachBottom: function() {},
    onShareAppMessage: function() {},
    getlist: function() {
        var i = a.getNetAddresss("plugin.activity-apply.api.order.getMyEnrol"), e = this;
        a._getNetWork({
            url: i,
            data: {
                order_id: e.data.order_id
            },
            success: function(a) {
                var i = a.data;
                1 == i.result && (i.data.thumb = i.data.has_one_activity.thumb, i.data.has_one_activity.start_time = t.default.formatTimeTwo(i.data.has_one_activity.start_time, "Y/M/D h:m:s"), 
                i.data.has_one_activity.end_time = t.default.formatTimeTwo(i.data.has_one_activity.end_time, "Y/M/D h:m:s"), 
                e.setData({
                    list: i.data,
                    "fid.form_id": i.data.form_data_id.form_id,
                    form_data_id: i.data.form_data_id.form_data_id
                }));
            },
            fail: function(t) {
                console.log(t);
            }
        });
    }
});